package AbPattern;

public abstract class Creator {
	public abstract BodyInjur getBodyinjurs();
	public abstract Collision getCollisions();
	public abstract Com getComs();
	public abstract PersonInjur getPersoninjurs();
	
	public static Creator getCreator(String a){
		Creator creator = null;
		if(a.equals("PICC")){
			creator = new PICCfactory();
			
		}
		else if(a.equals("PingAn")){
			creator = new Pingfactory();
		}
		return creator;
	}
}
